<?php
class HomePageHRBanner extends CWidget
{
	public $postParams=array();
	public $config=array();
	
	public function run()
  	{?>
  		<div>
					<?php  $bannerAds = BannerDetails::model()->getModel("HOME-ADD-BANNER-IMAGE", array());
						if (!empty($bannerAds)){ ?>
					<img src="<?php echo ApplicationConfig::getImageUrl("BANNER-IMAGES", array('file_name'=>$bannerAds->filename));?>" alt="" />
						<?php }else{?>
							<img src="<?php echo ApplicationConfig::app()->params['theme']['imageUrl']?>no_preview.jpg" alt="" height="89px" width="620px"/>
						<?php }?>
		</div>
  	<?php }
}
?>  
 